const express = require('express');
const router = express.Router();
const UserService = require("../service/user-service.js");
/* GET users listing. */
router.get('/', function(req, res, next) {
  res.send('respond with a resource');
});

router.post("/login", UserService.login);
router.post("/register", UserService.register);

module.exports = router;
